<?php


namespace app\admin\service;


use think\Model;

class Comment extends Model
{

    protected $name='comment';
    /**
     * 获取评价总数量
     * @return int|string
     */
    public function getCommentTotal()
    {
        return $this->where(['is_delete' => 0])->count();
    }
}